﻿<ResourceDictionary
     x:Uid="ResourceDictionary_1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:Borders="clr-namespace:ToggleSwitch.Borders;assembly=ToggleSwitch" 
     xmlns:ToggleSwitch="clr-namespace:ToggleSwitch;assembly=ToggleSwitch" 
     xmlns:Utils="clr-namespace:ToggleSwitch.Utils;assembly=ToggleSwitch"
     xmlns:Controls="clr-namespace:Demo.Controls" 
     xmlns:DemoUtils="clr-namespace:Demo.Utils">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary x:Uid="ResourceDictionary_2" Source="/ToggleSwitch;component/ThemesWPF/BorderStyles.xaml"/>
        <ResourceDictionary x:Uid="ResourceDictionary_3" Source="/ToggleSwitch;component/ThemesWPF/Generic.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <DemoUtils:CornerRadiusValueConverter x:Uid="DemoUtils:CornerRadiusValueConverter_1" x:Key="CornerRadiusValueConverter"/>
    <DemoUtils:ScalarValueConverter x:Uid="DemoUtils:ScalarValueConverter_1" x:Key="ScalarConverter"/>

    <LinearGradientBrush x:Uid="LinearGradientBrush_1" x:Key="iPhoneThumbBrush"  EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop x:Uid="GradientStop_1" Color="#FFD8D7D8"/>
        <GradientStop x:Uid="GradientStop_2" Color="#FFFDFCFD" Offset="1"/>
    </LinearGradientBrush>

    <ControlTemplate x:Uid="ControlTemplate_1" x:Key="EngravedContentTemplate" TargetType="ContentControl">
        <Controls:DropShadowTextBlock 
                        x:Uid="Controls:DropShadowTextBlock_1" DropShadowColor="#FFF7F7F7" 
                        DropShadowOpacity="0.3" 
                        DropShadowDistance="1" 
                        DropShadowAngle="90" 
                        Cursor="{TemplateBinding Cursor}" 
                        Text="{TemplateBinding Content}" 
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                        Margin="{TemplateBinding Padding}" 
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}" 
                        Foreground="{TemplateBinding Foreground}" 
                        FontFamily="{TemplateBinding FontFamily}" 
                        FontSize="{TemplateBinding FontSize}" 
                        FontWeight="{TemplateBinding FontWeight}" 
                        FontStyle="{TemplateBinding FontStyle}" 
                        HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" 
                        VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Focusable="False" IsTabStop="False"/>
    </ControlTemplate>

    <ControlTemplate x:Uid="ControlTemplate_2" x:Key="GroovedThumbTemplate" TargetType="Thumb">
        <Grid x:Uid="Grid_1" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Uid="CommonStates" x:Name="CommonStates">
                    <VisualState x:Uid="Normal" x:Name="Normal"/>
                    <VisualState x:Uid="MouseOver" x:Name="MouseOver">
                        <Storyboard x:Uid="Storyboard_1">
                            <DoubleAnimation x:Uid="DoubleAnimation_1" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="Pressed" x:Name="Pressed">
                        <Storyboard x:Uid="Storyboard_2">
                            <DoubleAnimation x:Uid="DoubleAnimation_2" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="Disabled" x:Name="Disabled">
                        <Storyboard x:Uid="Storyboard_3">
                            <DoubleAnimation x:Uid="DoubleAnimation_3" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="FocusStates" x:Name="FocusStates">
                    <VisualState x:Uid="Focused" x:Name="Focused">
                        <Storyboard x:Uid="Storyboard_4">
                            <DoubleAnimation x:Uid="DoubleAnimation_4" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="Unfocused" x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="CheckStates" x:Name="CheckStates">
                    <VisualState x:Uid="Unchecked" x:Name="Unchecked"/>
                    <VisualState x:Uid="Checked" x:Name="Checked"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Borders:OuterGlowBorder x:Uid="Borders:OuterGlowBorder_1" OuterGlowSize="4" OuterGlowOpacity="0.15" BorderThickness="0" OuterGlowColor="Black" Background="Transparent" CornerRadius="4" ShadowCornerRadius="8" IsTabStop="False" >
                <Grid x:Uid="Grid_2">
                    <Borders:ClippingBorder x:Uid="Background" x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" IsTabStop="False" Background="White">
                        <Border x:Uid="Border_1" BorderBrush="#FFEBEBEB" CornerRadius="3" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" Padding="6">
                            <StackPanel x:Uid="StackPanel_1" Orientation="Horizontal" HorizontalAlignment="Center">
                                <Rectangle x:Uid="Rectangle_1" Fill="#7F969696" Width="1" StrokeThickness="0"/>
                                <Rectangle x:Uid="Rectangle_2" Fill="#7FF8F8F8" Width="1" StrokeThickness="0" Margin="0,0,1,0" />
                                <Rectangle x:Uid="Rectangle_3" Fill="#7F969696" Width="1" StrokeThickness="0" />
                                <Rectangle x:Uid="Rectangle_4" Fill="#7FF8F8F8" Width="1" StrokeThickness="0" Margin="0,0,1,0"/>
                                <Rectangle x:Uid="Rectangle_5" Fill="#7F969696" Width="1" StrokeThickness="0" />
                                <Rectangle x:Uid="Rectangle_6" Fill="#7FF8F8F8" Width="1" StrokeThickness="0" />
                            </StackPanel>
                        </Border>
                    </Borders:ClippingBorder>
                    <Borders:ClippingBorder x:Uid="BackgroundAnimation" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="4" IsTabStop="False"/>
                    <Rectangle x:Uid="DisabledVisualElement" x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="4" RadiusX="4"/>
                    <Rectangle x:Uid="FocusVisualElement" x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="4" RadiusX="4" StrokeThickness="1"/>
                </Grid>
            </Borders:OuterGlowBorder>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Uid="ControlTemplate_3" x:Key="iOS5ThumbTemplate" TargetType="Thumb">
        <Grid x:Uid="Grid_3" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Uid="VisualStateGroup_1" x:Name="CommonStates">
                    <VisualState x:Uid="VisualState_1" x:Name="Normal"/>
                    <VisualState x:Uid="VisualState_2" x:Name="MouseOver">
                        <Storyboard x:Uid="Storyboard_5">
                            <DoubleAnimation x:Uid="DoubleAnimation_5" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_3" x:Name="Pressed">
                        <Storyboard x:Uid="Storyboard_6">
                            <DoubleAnimation x:Uid="DoubleAnimation_6" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_4" x:Name="Disabled">
                        <Storyboard x:Uid="Storyboard_7">
                            <DoubleAnimation x:Uid="DoubleAnimation_7" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_2" x:Name="FocusStates">
                    <VisualState x:Uid="VisualState_5" x:Name="Focused">
                        <Storyboard x:Uid="Storyboard_8">
                            <DoubleAnimation x:Uid="DoubleAnimation_8" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_6" x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_3" x:Name="CheckStates">
                    <VisualState x:Uid="VisualState_7" x:Name="Unchecked"/>
                    <VisualState x:Uid="VisualState_8" x:Name="Checked"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Borders:OuterGlowBorder x:Uid="Borders:OuterGlowBorder_2" OuterGlowSize="1" BorderThickness="0" OuterGlowColor="Black" Background="Transparent" CornerRadius="10" ShadowCornerRadius="12" IsTabStop="False" OuterGlowOpacity="0.05" >
                <Grid x:Uid="Grid_4">
                    <Border x:Uid="Border_2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="11" Background="{TemplateBinding Background}">
                        <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_1" x:Name="Background" CornerRadius="12" IsTabStop="False" Background="{TemplateBinding Background}" BorderBrush="#FFEBEBEB" BorderThickness="1"/>
                    </Border>
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_2" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="11" IsTabStop="False"/>
                    <Rectangle x:Uid="Rectangle_7" x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="11" RadiusX="11"/>
                    <Rectangle x:Uid="Rectangle_8" x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="9" RadiusX="9" StrokeThickness="1"/>
                </Grid>
            </Borders:OuterGlowBorder>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Uid="ControlTemplate_4" x:Key="BrushedThumbTemplate" TargetType="Thumb">
        <Grid x:Uid="Grid_5" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Uid="VisualStateGroup_4" x:Name="CommonStates">
                    <VisualState x:Uid="VisualState_9" x:Name="Normal"/>
                    <VisualState x:Uid="VisualState_10" x:Name="MouseOver">
                        <Storyboard x:Uid="Storyboard_9">
                            <DoubleAnimation x:Uid="DoubleAnimation_9" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_11" x:Name="Pressed">
                        <Storyboard x:Uid="Storyboard_10">
                            <DoubleAnimation x:Uid="DoubleAnimation_10" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_12" x:Name="Disabled">
                        <Storyboard x:Uid="Storyboard_11">
                            <DoubleAnimation x:Uid="DoubleAnimation_11" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_5" x:Name="FocusStates">
                    <VisualState x:Uid="VisualState_13" x:Name="Focused">
                        <Storyboard x:Uid="Storyboard_12">
                            <DoubleAnimation x:Uid="DoubleAnimation_12" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_14" x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Image x:Uid="Image_1" Source="/ToggleSwitch/Images/Knob.png"/>
            <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_3" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="14"/>
            <Rectangle x:Uid="Rectangle_9" x:Name="DisabledVisualElement" IsHitTestVisible="false" Opacity="0" RadiusY="14" RadiusX="14"/>
            <Rectangle x:Uid="Rectangle_10" x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" RadiusY="14" RadiusX="14"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Uid="ControlTemplate_5" x:Key="SimpleThumbTemplate" TargetType="Thumb">
        <Grid x:Uid="Grid_6" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Uid="VisualStateGroup_6" x:Name="CommonStates">
                    <VisualState x:Uid="VisualState_15" x:Name="Normal"/>
                    <VisualState x:Uid="VisualState_16" x:Name="MouseOver">
                        <Storyboard x:Uid="Storyboard_13">
                            <DoubleAnimation x:Uid="DoubleAnimation_13" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_17" x:Name="Pressed">
                        <Storyboard x:Uid="Storyboard_14">
                            <DoubleAnimation x:Uid="DoubleAnimation_14" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_18" x:Name="Disabled">
                        <Storyboard x:Uid="Storyboard_15">
                            <DoubleAnimation x:Uid="DoubleAnimation_15" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_7" x:Name="FocusStates">
                    <VisualState x:Uid="VisualState_19" x:Name="Focused">
                        <Storyboard x:Uid="Storyboard_16">
                            <DoubleAnimation x:Uid="DoubleAnimation_16" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_20" x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_8" x:Name="CheckStates">
                    <VisualState x:Uid="VisualState_21" x:Name="Unchecked"/>
                    <VisualState x:Uid="VisualState_22" x:Name="Checked"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Borders:OuterGlowBorder x:Uid="Borders:OuterGlowBorder_3" OuterGlowSize="4" OuterGlowOpacity="0.15" BorderThickness="0" OuterGlowColor="Black" Background="Transparent" CornerRadius="4" ShadowCornerRadius="8" IsTabStop="False" >
                <Grid x:Uid="Grid_7">
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_4" x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" IsTabStop="False" Background="{TemplateBinding Background}"/>
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_5" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="4" IsTabStop="False"/>
                    <Rectangle x:Uid="Rectangle_11" x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="4" RadiusX="4"/>
                    <Rectangle x:Uid="Rectangle_12" x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="4" RadiusX="4" StrokeThickness="1"/>
                </Grid>
            </Borders:OuterGlowBorder>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Uid="ControlTemplate_6" x:Key="ThumbWithDoubleArrowTemplate" TargetType="Thumb">
        <Grid x:Uid="Grid_8" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Uid="VisualStateGroup_9" x:Name="CommonStates">
                    <VisualState x:Uid="VisualState_23" x:Name="Normal"/>
                    <VisualState x:Uid="VisualState_24" x:Name="MouseOver">
                        <Storyboard x:Uid="Storyboard_17">
                            <DoubleAnimation x:Uid="DoubleAnimation_17" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_25" x:Name="Pressed">
                        <Storyboard x:Uid="Storyboard_18">
                            <DoubleAnimation x:Uid="DoubleAnimation_18" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_26" x:Name="Disabled">
                        <Storyboard x:Uid="Storyboard_19">
                            <DoubleAnimation x:Uid="DoubleAnimation_19" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_10" x:Name="FocusStates">
                    <VisualState x:Uid="VisualState_27" x:Name="Focused">
                        <Storyboard x:Uid="Storyboard_20">
                            <DoubleAnimation x:Uid="DoubleAnimation_20" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_28" x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_11" x:Name="CheckStates">
                    <VisualState x:Uid="VisualState_29" x:Name="Unchecked"/>
                    <VisualState x:Uid="VisualState_30" x:Name="Checked"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Borders:OuterGlowBorder x:Uid="Borders:OuterGlowBorder_4" OuterGlowSize="4" OuterGlowOpacity="0.15" BorderThickness="0" OuterGlowColor="Black" Background="Transparent" CornerRadius="2" ShadowCornerRadius="8" IsTabStop="False" >
                <Grid x:Uid="Grid_9">
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_6" x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" IsTabStop="False" Background="{TemplateBinding Background}">
                        <StackPanel x:Uid="StackPanel_2" Orientation="Horizontal" Height="6" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Path x:Uid="Path_1" Data="M0,0 L0,6 L-5,3" Fill="{TemplateBinding Foreground}" Stretch="Fill" StrokeThickness="0" Margin="0,0,2,0"/>
                            <Path x:Uid="Path_2" Data="M0,0 L0,6 L5,3" Fill="{TemplateBinding Foreground}" Stretch="Fill" StrokeThickness="0" Margin="2,0,0,0"/>
                        </StackPanel>
                    </Borders:ClippingBorder>
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_7" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="2" IsTabStop="False"/>
                    <Rectangle x:Uid="Rectangle_13" x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="2" RadiusX="2"/>
                    <Rectangle x:Uid="Rectangle_14" x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" StrokeThickness="1"/>
                </Grid>
            </Borders:OuterGlowBorder>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Uid="ControlTemplate_7" x:Key="RestartThumbTemplate" TargetType="Thumb">
        <Grid x:Uid="Grid_10" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Uid="VisualStateGroup_12" x:Name="CommonStates">
                    <VisualState x:Uid="VisualState_31" x:Name="Normal"/>
                    <VisualState x:Uid="VisualState_32" x:Name="MouseOver">
                        <Storyboard x:Uid="Storyboard_21">
                            <DoubleAnimation x:Uid="DoubleAnimation_21" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_33" x:Name="Pressed">
                        <Storyboard x:Uid="Storyboard_22">
                            <DoubleAnimation x:Uid="DoubleAnimation_22" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_34" x:Name="Disabled">
                        <Storyboard x:Uid="Storyboard_23">
                            <DoubleAnimation x:Uid="DoubleAnimation_23" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_13" x:Name="FocusStates">
                    <VisualState x:Uid="VisualState_35" x:Name="Focused">
                        <Storyboard x:Uid="Storyboard_24">
                            <DoubleAnimation x:Uid="DoubleAnimation_24" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_36" x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_14" x:Name="CheckStates">
                    <VisualState x:Uid="VisualState_37" x:Name="Unchecked"/>
                    <VisualState x:Uid="VisualState_38" x:Name="Checked">
                        <Storyboard x:Uid="Storyboard_25" RepeatBehavior="Forever">
                            <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_1" BeginTime="0" Storyboard.TargetName="LoadingGrid" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)">
                                <EasingDoubleKeyFrame x:Uid="EasingDoubleKeyFrame_1" KeyTime="0" Value="0"/>
                                <EasingDoubleKeyFrame x:Uid="EasingDoubleKeyFrame_2" KeyTime="00:00:01" Value="359"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_1" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="LoadingGrid">
                                <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_1" KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility x:Uid="Visibility_1">Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_2" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path">
                                <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_2" KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility x:Uid="Visibility_2">Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Borders:OuterGlowBorder x:Uid="Borders:OuterGlowBorder_5" OuterGlowSize="4" OuterGlowOpacity="0.15" BorderThickness="0" OuterGlowColor="Black" Background="Transparent" CornerRadius="4" ShadowCornerRadius="8" IsTabStop="False" >
                <Grid x:Uid="Grid_11">
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_8" x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" IsTabStop="False" Background="White">
                        <Border x:Uid="Border_3" BorderBrush="#FFEBEBEB" CornerRadius="3" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}">
                            <Grid x:Uid="Grid_12">
                                 <Path x:Uid="path" x:Name="path" Data="M3.6,2.6 L10,2.6 L10,6.6 L3.6,6.6 z M10,0 L15.5,4.6 L10,9.4 z" Fill="#AA767676" Stretch="Fill" StrokeThickness="0" Margin="7,5" />
                                <StackPanel x:Uid="LoadingGrid" x:Name="LoadingGrid" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                                    <StackPanel.RenderTransform>
                                        <RotateTransform x:Uid="RotateTransform_1"/>
                                    </StackPanel.RenderTransform>
                                    <Path x:Uid="Path_3" Data="F1 M 10,3 C 6,3 3,6 3,10 L 0,10 C 0,4.5 4.5,0 10,0 C 15.5,0 20,4.5 20,10 L 17,10 C 17,6 14,3 10,3 Z" Height="9" Width="18" HorizontalAlignment="Center" Stretch="Fill" >
                                        <Path.Fill>
                                            <LinearGradientBrush x:Uid="LinearGradientBrush_2" MappingMode="Absolute" StartPoint="400,240.414" EndPoint="420,240.414">
                                                <LinearGradientBrush.Transform>
                                                    <MatrixTransform x:Uid="MatrixTransform_1" Matrix="-1,0,0,-1,420,245"/>
                                                </LinearGradientBrush.Transform>
                                                <GradientStop x:Uid="GradientStop_3" Offset="0.25" Color="#FF7F7F7F"/>
                                                <GradientStop x:Uid="GradientStop_4" Offset="1" Color="#FF3F3F3F"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path x:Uid="Path_4" Data="F1 M17,0 C17,0 17,0 17,0 C17,4 14,7 10,7 C6,7 3,4 3,0 C3,0 3,0 3,0 L0,0 C0,0 0,0 0,0 C0,5 5,10 10,10 C15.5,10 20,5 20,0 C20,0 20,0 20,0 L17,0 z" Height="9" Width="18" HorizontalAlignment="Center" Stretch="Fill">
                                        <Path.Fill>
                                            <LinearGradientBrush x:Uid="LinearGradientBrush_3" MappingMode="Absolute" StartPoint="489.5,230.5" EndPoint="509.5,230.5">
                                                <LinearGradientBrush.Transform>
                                                    <MatrixTransform x:Uid="MatrixTransform_2" Matrix="1,0,-0,-1,-489.5,245"/>
                                                </LinearGradientBrush.Transform>
                                                <GradientStop x:Uid="GradientStop_5" Offset="0" Color="White"/>
                                                <GradientStop x:Uid="GradientStop_6" Offset="0.75" Color="#FF7F7F7F"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                </StackPanel>
                            </Grid>
                        </Border>
                    </Borders:ClippingBorder>
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_9" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="4" IsTabStop="False"/>
                    <Rectangle x:Uid="Rectangle_15" x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="4" RadiusX="4"/>
                    <Rectangle x:Uid="Rectangle_16" x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="4" RadiusX="4" StrokeThickness="1"/>
                </Grid>
            </Borders:OuterGlowBorder>
        </Grid>
    </ControlTemplate>

    <Style x:Uid="Style_1" x:Key="LightBulbToggleSwitchStyle" TargetType="ToggleSwitch:HorizontalToggleSwitch">
        <Setter x:Uid="Setter_1" Property="BorderThickness" Value="1"/>
        <Setter x:Uid="Setter_2" Property="Width" Value="130"/>
        <Setter x:Uid="Setter_3" Property="Height" Value="Auto"/>
        <Setter x:Uid="Setter_4" Property="ThumbSize" Value="22"/>
        <Setter x:Uid="Setter_5" Property="ContentTemplate" Value="{StaticResource PresenterContentTemplate}" />
        <Setter x:Uid="Setter_6" Property="ThumbTemplate" Value="{StaticResource BrushedThumbTemplate}" />
        <Setter x:Uid="Setter_7" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_8" TargetType="ToggleSwitch:HorizontalToggleSwitch">
                    <Grid x:Uid="Grid_13">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Uid="ColumnDefinition_1" Width="Auto"/>
                            <ColumnDefinition x:Uid="ColumnDefinition_2" Width="*"/>
                            <ColumnDefinition x:Uid="ColumnDefinition_3" Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Uid="VisualStateGroup_15" x:Name="CommonStates">
                                <VisualState x:Uid="VisualState_39" x:Name="Normal"/>
                                <VisualState x:Uid="VisualState_40" x:Name="Disabled">
                                    <Storyboard x:Uid="Storyboard_26">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_3" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DisabledOverlay">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_3" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_3">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_41" x:Name="MouseOver"/>
                                <VisualState x:Uid="VisualState_42" x:Name="Pressed"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Uid="VisualStateGroup_16" x:Name="CheckStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition x:Uid="VisualTransition_1" GeneratedDuration="0:0:0.10" To="Unchecked"/>
                                    <VisualTransition x:Uid="VisualTransition_2" GeneratedDuration="0:0:0.10" To="Checked"/>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Uid="VisualState_43" x:Name="Checked">
                                    <Storyboard x:Uid="Storyboard_27">
                                        <DoubleAnimation x:Uid="DoubleAnimation_25" Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchUncheckedLabel" />
                                        <DoubleAnimation x:Uid="DoubleAnimation_26" Duration="0" To="0.99" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchCheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_44" x:Name="Unchecked">
                                    <Storyboard x:Uid="Storyboard_28">
                                        <DoubleAnimation x:Uid="DoubleAnimation_27" Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchCheckedLabel" />
                                        <DoubleAnimation x:Uid="DoubleAnimation_28" Duration="0" To="0.99" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchUncheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="DraggingChecked" x:Name="DraggingChecked">
                                    <Storyboard x:Uid="Storyboard_29">
                                        <DoubleAnimation x:Uid="DoubleAnimation_29" Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchUncheckedLabel" />
                                        <DoubleAnimation x:Uid="DoubleAnimation_30" Duration="0" To="0.99" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchCheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="DraggingUnchecked" x:Name="DraggingUnchecked">
                                    <Storyboard x:Uid="Storyboard_30">
                                        <DoubleAnimation x:Uid="DoubleAnimation_31" Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchCheckedLabel" />
                                        <DoubleAnimation x:Uid="DoubleAnimation_32" Duration="0" To="0.99" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchUncheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Uid="VisualStateGroup_17" x:Name="FocusStates">
                                <VisualState x:Uid="VisualState_45" x:Name="Unfocused"/>
                                <VisualState x:Uid="VisualState_46" x:Name="Focused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl x:Uid="SwitchUncheckedLabel" x:Name="SwitchUncheckedLabel" 
                            Content="{TemplateBinding UncheckedContent}" 
                            HorizontalContentAlignment="Center" 
                            VerticalContentAlignment="Center" 
                            Template="{TemplateBinding ContentTemplate}" 
                            Foreground="{TemplateBinding UncheckedForeground}" 
                            Opacity="0.99" 
                            Cursor="Hand" IsTabStop="False" Focusable="False"/>
                        <Grid x:Uid="Grid_14" Grid.Column="1">
                            <Utils:ActualSizePropertyProxy x:Uid="LightBulbSwitchSizeProxy" x:Name="LightBulbSwitchSizeProxy" Element="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed" />
                            <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_10" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{Binding ActualHeightValue, ConverterParameter=0.5, Converter={StaticResource CornerRadiusValueConverter}, ElementName=LightBulbSwitchSizeProxy}" Margin="0" IsTabStop="False">
                                <Borders:ClippingBorder.BorderBrush>
                                    <LinearGradientBrush x:Uid="LinearGradientBrush_4" EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop x:Uid="GradientStop_7" Color="#AA373737" Offset="0"/>
                                        <GradientStop x:Uid="GradientStop_8" Color="#AAF9F9F9" Offset="1"/>
                                    </LinearGradientBrush>
                                </Borders:ClippingBorder.BorderBrush>
                                <Grid x:Uid="SwitchRoot" x:Name="SwitchRoot" Cursor="Hand">
                                    <Borders:InnerGlowBorder x:Uid="innerGlowBorder" x:Name="innerGlowBorder" InnerGlowColor="Black" InnerGlowOpacity="0.5" BorderThickness="0" BorderBrush="{x:Null}" Foreground="{x:Null}" InnerGlowSize="0,5,0,0" IsTabStop="False">
                                        <Borders:InnerGlowBorder.Background>
                                            <LinearGradientBrush x:Uid="LinearGradientBrush_5">
                                                <GradientStop x:Uid="GradientStop_9" Color="#AA333333"/>
                                                <GradientStop x:Uid="GradientStop_10" Color="#77DDDDDD" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Borders:InnerGlowBorder.Background>
                                    </Borders:InnerGlowBorder>
                                    <Canvas x:Uid="SwitchTrack" x:Name="SwitchTrack" Cursor="Hand" Height="{TemplateBinding ThumbSize}" MinWidth="{TemplateBinding ThumbSize}" MinHeight="{TemplateBinding ThumbSize}">
                                        <Thumb x:Uid="SwitchThumb" x:Name="SwitchThumb"
                                            Width="{TemplateBinding ThumbSize}"
                                            Height="{TemplateBinding ThumbSize}"
                                            Background="{TemplateBinding ThumbBrush}"
                                            Template="{TemplateBinding ThumbTemplate}" BorderThickness="0"/>
                                    </Canvas>
                                </Grid>
                            </Borders:ClippingBorder>
                            <Border x:Uid="DisabledOverlay" x:Name="DisabledOverlay" Background="#AAEEEEEE" Visibility="Collapsed" CornerRadius="{Binding ActualHeightValue, ConverterParameter=0.5, Converter={StaticResource CornerRadiusValueConverter}, ElementName=LightBulbSwitchSizeProxy}"/>
                        </Grid>
                        <ContentControl x:Uid="SwitchCheckedLabel" x:Name="SwitchCheckedLabel" 
                            Content="{TemplateBinding CheckedContent}"
                            HorizontalContentAlignment="Center" 
                            VerticalContentAlignment="Center"
                            Template="{TemplateBinding ContentTemplate}" 
                            Foreground="{TemplateBinding CheckedForeground}" 
                            Opacity="0.985" 
                            Cursor="Hand" IsTabStop="False" Grid.Column="2"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Uid="ControlTemplate_9" x:Key="SafariThumbControlTemplate" TargetType="Thumb">
        <Grid x:Uid="Grid_15" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Uid="VisualStateGroup_18" x:Name="CommonStates">
                    <VisualState x:Uid="VisualState_47" x:Name="Normal"/>
                    <VisualState x:Uid="VisualState_48" x:Name="MouseOver">
                        <Storyboard x:Uid="Storyboard_31">
                            <DoubleAnimation x:Uid="DoubleAnimation_33" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_49" x:Name="Pressed">
                        <Storyboard x:Uid="Storyboard_32">
                            <DoubleAnimation x:Uid="DoubleAnimation_34" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_50" x:Name="Disabled">
                        <Storyboard x:Uid="Storyboard_33">
                            <DoubleAnimation x:Uid="DoubleAnimation_35" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_19" x:Name="FocusStates">
                    <VisualState x:Uid="VisualState_51" x:Name="Focused">
                        <Storyboard x:Uid="Storyboard_34">
                            <DoubleAnimation x:Uid="DoubleAnimation_36" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Uid="VisualState_52" x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Uid="VisualStateGroup_20" x:Name="CheckStates">
                    <VisualState x:Uid="VisualState_53" x:Name="Unchecked"/>
                    <VisualState x:Uid="VisualState_54" x:Name="Checked"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Borders:OuterGlowBorder x:Uid="Borders:OuterGlowBorder_6" OuterGlowSize="4" OuterGlowOpacity="0.15" BorderThickness="0" OuterGlowColor="Black" Background="Transparent" CornerRadius="2" ShadowCornerRadius="4" IsTabStop="False" >
                <Grid x:Uid="Grid_16">
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_11" x:Name="Background" BorderBrush="#FF656565" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" IsTabStop="False" Background="{TemplateBinding Background}"/>
                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_12" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="2" IsTabStop="False"/>
                    <Rectangle x:Uid="Rectangle_17" x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="2" RadiusX="2"/>
                    <Rectangle x:Uid="Rectangle_18" x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" StrokeThickness="1"/>
                </Grid>
            </Borders:OuterGlowBorder>
        </Grid>
    </ControlTemplate>
    <Style x:Uid="Style_2" x:Key="SafariSwitchStyle" TargetType="ToggleSwitch:HorizontalToggleSwitch">
        <Setter x:Uid="Setter_8" Property="Width" Value="120"/>
        <Setter x:Uid="Setter_9" Property="Height" Value="20"/>
        <Setter x:Uid="Setter_10" Property="BorderBrush" Value="#FF6C6C6C"/>
        <Setter x:Uid="Setter_11" Property="BorderThickness" Value="1"/>
        <Setter x:Uid="Setter_12" Property="Padding" Value="0,4"/>
        <Setter x:Uid="Setter_13" Property="UncheckedForeground" Value="#FF3C3C3C"/>
        <Setter x:Uid="Setter_14" Property="CheckedForeground" Value="#FF3C3C3C" />
        <Setter x:Uid="Setter_15" Property="FontSize" Value="12" />
        <Setter x:Uid="Setter_16" Property="ThumbSize" Value="30" />
        <Setter x:Uid="Setter_17" Property="ContentTemplate" Value="{StaticResource EngravedContentTemplate}" />
        <Setter x:Uid="Setter_18" Property="ThumbTemplate" Value="{StaticResource HorizontalThumbTemplate}"/>
        <Setter x:Uid="Setter_19" Property="Background">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_6" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_11" Color="#FF656565" Offset="0"/>
                    <GradientStop x:Uid="GradientStop_12" Color="#FFA5A5A5" Offset="1"/>
                    <GradientStop x:Uid="GradientStop_13" Color="#FF797979" Offset="0.095"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_20" Property="ThumbBrush">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_7" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_14" Color="#FFE1E1E1" Offset="1"/>
                    <GradientStop x:Uid="GradientStop_15" Color="#FFFBFBFB"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_21" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_10" TargetType="ToggleSwitch:HorizontalToggleSwitch">
                    <Grid x:Uid="Grid_17">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Uid="ColumnDefinition_4" Width="Auto"/>
                            <ColumnDefinition x:Uid="ColumnDefinition_5" Width="*"/>
                            <ColumnDefinition x:Uid="ColumnDefinition_6" Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Uid="VisualStateGroup_21" x:Name="CommonStates">
                                <VisualState x:Uid="VisualState_55" x:Name="Normal"/>
                                <VisualState x:Uid="VisualState_56" x:Name="Disabled">
                                    <Storyboard x:Uid="Storyboard_35">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_4" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DisabledOverlay">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_4" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_4">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_57" x:Name="MouseOver"/>
                                <VisualState x:Uid="VisualState_58" x:Name="Pressed"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Uid="VisualStateGroup_22" x:Name="CheckStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition x:Uid="VisualTransition_3" GeneratedDuration="0:0:0.10" To="Unchecked"/>
                                    <VisualTransition x:Uid="VisualTransition_4" GeneratedDuration="0:0:0.10" To="Checked"/>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Uid="VisualState_59" x:Name="Checked"/>
                                <VisualState x:Uid="VisualState_60" x:Name="Unchecked"/>
                                <VisualState x:Uid="VisualState_61" x:Name="DraggingChecked"/>
                                <VisualState x:Uid="VisualState_62" x:Name="DraggingUnchecked"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Utils:ActualSizePropertyProxy x:Uid="ActualSizeProxy" x:Name="ActualSizeProxy" Element="{Binding Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed" IsHitTestVisible="False"/>
                        <ContentControl x:Uid="OffLabel" x:Name="OffLabel" 
                                    Content="{TemplateBinding UncheckedContent}" 
                                    HorizontalContentAlignment="Center" 
                                    VerticalContentAlignment="Center"
                                    Template="{TemplateBinding ContentTemplate}"
                                    Foreground="{TemplateBinding UncheckedForeground}" IsTabStop="False" Padding="0,0,6,0" FontWeight="{TemplateBinding FontWeight}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" Cursor="Hand" VerticalAlignment="Center" FontStyle="{TemplateBinding FontStyle}" Focusable="False" />
                        <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_13" x:Name="SwitchRoot" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" IsTabStop="False" Grid.Column="1" Background="{TemplateBinding Background}" Cursor="Hand" >
                            <Canvas x:Uid="Canvas_1" x:Name="SwitchTrack" Cursor="Hand" Height="{TemplateBinding Height}" Margin="0,-1,0,0">
                                <Thumb x:Uid="Thumb_1" x:Name="SwitchThumb" 
                                            Background="{TemplateBinding ThumbBrush}" 
                                            Template="{StaticResource SafariThumbControlTemplate}" 
                                            Cursor="Hand" 
                                            Height="{Binding ActualHeightValue, ElementName=ActualSizeProxy}" 
                                            Width="{TemplateBinding ThumbSize}"
                                            HorizontalAlignment="Left" IsTabStop="False"/>
                            </Canvas>
                        </Borders:ClippingBorder>
                        <ContentControl x:Uid="OnLabel" x:Name="OnLabel" 
                                    Content="{TemplateBinding CheckedContent}"
                                    HorizontalContentAlignment="Center" 
                                    VerticalContentAlignment="Center"
                                    Template="{TemplateBinding ContentTemplate}" 
                                    Foreground="{TemplateBinding CheckedForeground}" IsTabStop="False" Grid.Column="2" Padding="6,0,0,0" FontWeight="{TemplateBinding FontWeight}"  FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" Cursor="Hand" VerticalAlignment="Center" FontStyle="{TemplateBinding FontStyle}" Focusable="False"/>
                        <Border x:Uid="Border_4" x:Name="DisabledOverlay" Background="#AAEEEEEE" Visibility="Collapsed" CornerRadius="4" Height="27" Grid.Column="1"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Uid="Style_3" x:Key="MetroToggleSwitchStyle" TargetType="ToggleSwitch:HorizontalToggleSwitch">
        <Setter x:Uid="Setter_22" Property="Foreground" Value="White"/>
        <Setter x:Uid="Setter_23" Property="Width" Value="88"/>
        <Setter x:Uid="Setter_24" Property="Height" Value="28"/>
        <Setter x:Uid="Setter_25" Property="BorderBrush" Value="#FFBEBEBE"/>
        <Setter x:Uid="Setter_26" Property="BorderThickness" Value="1"/>
        <Setter x:Uid="Setter_27" Property="Padding" Value="0,4"/>
        <Setter x:Uid="Setter_28" Property="UncheckedForeground" Value="#FF5C5C5C"/>
        <Setter x:Uid="Setter_29" Property="CheckedForeground" Value="White"/>
        <Setter x:Uid="Setter_30" Property="ThumbSize" Value="42"/>
        <Setter x:Uid="Setter_31" Property="FontWeight" Value="SemiBold"/>
        <Setter x:Uid="Setter_32" Property="FontFamily" Value="Arial"/>
        <Setter x:Uid="Setter_33" Property="FontSize" Value="12"/>
        <Setter x:Uid="Setter_34" Property="HorizontalContentAlignment" Value="Center" />
        <Setter x:Uid="Setter_35" Property="VerticalContentAlignment" Value="Center" />
        <Setter x:Uid="Setter_36" Property="ContentTemplate" Value="{StaticResource EngravedContentTemplate}"/>
        <Setter x:Uid="Setter_37" Property="ThumbTemplate" Value="{StaticResource ThumbWithDoubleArrowTemplate}"/>
        <Setter x:Uid="Setter_38" Property="CheckedBackground">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_8" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_16" Color="#FF81B5FB" Offset="1"/>
                    <GradientStop x:Uid="GradientStop_17" Color="#FF5D9FF2" Offset="0.50"/>
                    <GradientStop x:Uid="GradientStop_18" Color="#FF569BEF" Offset="0.50"/>
                    <GradientStop x:Uid="GradientStop_19" Color="#FF3772B9"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_39" Property="UncheckedBackground">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_9" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_20" Color="#FFBBBBBB" Offset="0"/>
                    <GradientStop x:Uid="GradientStop_21" Color="#FFE1E2E2" Offset="0.5"/>
                    <GradientStop x:Uid="GradientStop_22" Color="#FFDDDDDD" Offset="0.5"/>
                    <GradientStop x:Uid="GradientStop_23" Color="White" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_40" Property="ThumbBrush">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_10" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_24" Color="#FFD8D7D8"/>
                    <GradientStop x:Uid="GradientStop_25" Color="#FFFDFCFD" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_41" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_11" TargetType="ToggleSwitch:HorizontalToggleSwitch">
                    <Grid x:Uid="Grid_18">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Uid="VisualStateGroup_23" x:Name="CommonStates">
                                <VisualState x:Uid="VisualState_63" x:Name="Normal"/>
                                <VisualState x:Uid="VisualState_64" x:Name="Disabled">
                                    <Storyboard x:Uid="Storyboard_36">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_5" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DisabledOverlay">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_5" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_5">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_65" x:Name="MouseOver"/>
                                <VisualState x:Uid="VisualState_66" x:Name="Pressed"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Uid="VisualStateGroup_24" x:Name="CheckStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition x:Uid="VisualTransition_5" GeneratedDuration="0:0:0.10" To="Unchecked"/>
                                    <VisualTransition x:Uid="VisualTransition_6" GeneratedDuration="0:0:0.10" To="Checked"/>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Uid="VisualState_67" x:Name="Checked"/>
                                <VisualState x:Uid="VisualState_68" x:Name="Unchecked"/>
                                <VisualState x:Uid="VisualState_69" x:Name="DraggingChecked"/>
                                <VisualState x:Uid="VisualState_70" x:Name="DraggingUnchecked"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_14" x:Name="SwitchRoot" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2" IsTabStop="False">
                            <Canvas x:Uid="Canvas_2" MinWidth="{TemplateBinding ThumbSize}" MinHeight="{TemplateBinding FontSize}">
                                <Utils:ActualSizePropertyProxy x:Uid="Utils:ActualSizePropertyProxy_1" x:Name="ActualSizeProxy" Element="{Binding Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed"/>
                                <Grid x:Uid="Grid_19" x:Name="SwitchTrack" Cursor="Hand" Height="{Binding ActualHeightValue, ElementName=ActualSizeProxy, Mode=OneWay}" Margin="0,-1,0,0">
                                    <StackPanel x:Uid="StackPanel_3" Orientation="Horizontal">
                                        <Border x:Uid="Border_5" Background="{TemplateBinding CheckedBackground}" Margin="-1,0,0,0" Padding="1,0,0,0">
                                            <ContentControl x:Uid="SwitchChecked" x:Name="SwitchChecked" Content="{TemplateBinding CheckedContent}" Foreground="{TemplateBinding CheckedForeground}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="Center" IsTabStop="False" Margin="{TemplateBinding Padding}" Padding="0,0,22,0" Template="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" VerticalContentAlignment="Center"/>
                                        </Border>
                                        <Border x:Uid="Border_6" Background="{TemplateBinding UncheckedBackground}" Margin="-1,0,0,0">
                                            <ContentControl x:Uid="SwitchUnchecked" x:Name="SwitchUnchecked" Content="{TemplateBinding UncheckedContent}" Foreground="{TemplateBinding UncheckedForeground}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="Center" IsTabStop="False" Margin="{TemplateBinding Padding}" Template="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" VerticalContentAlignment="Center"/>
                                        </Border>
                                    </StackPanel>
                                </Grid>
                                <Borders:InnerGlowBorder x:Uid="Borders:InnerGlowBorder_1" BorderThickness="0" Background="#00000000" CornerRadius="4" Height="{Binding ActualHeightValue, ElementName=ActualSizeProxy, Mode=OneWay}" IsHitTestVisible="False" IsTabStop="False" InnerGlowOpacity="0.25" InnerGlowColor="Black" InnerGlowSize="2,4,2,0" Margin="-1,-1,0,0" Width="{Binding ActualWidthValue, ElementName=ActualSizeProxy, Mode=OneWay}"/>
                                <Thumb x:Uid="Thumb_2" x:Name="SwitchThumb" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding ThumbBrush}" Cursor="Hand" Foreground="#FF359CE6" HorizontalAlignment="Left" Height="{Binding ActualHeightValue, ElementName=ActualSizeProxy, Mode=OneWay}" IsTabStop="False" Margin="0,-1,0,0" Template="{TemplateBinding ThumbTemplate}" Width="{TemplateBinding ThumbSize}"/>
                            </Canvas>
                        </Borders:ClippingBorder>
                        <Border x:Uid="Border_7" x:Name="DisabledOverlay" Background="#AAEEEEEE" CornerRadius="4" Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Uid="Style_4" x:Key="iPhoneToggleSwitchStyle" TargetType="{x:Type ToggleSwitch:HorizontalToggleSwitch}">
        <Setter x:Uid="Setter_42" Property="Width" Value="88"/>
        <Setter x:Uid="Setter_43" Property="Height" Value="27"/>
        <Setter x:Uid="Setter_44" Property="BorderBrush" Value="#AFBEBEBE"/>
        <Setter x:Uid="Setter_45" Property="UncheckedForeground" Value="#FF5C5C5C"/>
        <Setter x:Uid="Setter_46" Property="CheckedForeground" Value="White" />
        <Setter x:Uid="Setter_47" Property="ThumbSize" Value="42"/>
        <Setter x:Uid="Setter_48" Property="FontSize" Value="12"/>
        <Setter x:Uid="Setter_49" Property="BorderThickness" Value="1" />
        <Setter x:Uid="Setter_50" Property="Padding" Value="0,4" />
        <Setter x:Uid="Setter_51" Property="FontWeight" Value="SemiBold" />
        <Setter x:Uid="Setter_52" Property="FontFamily" Value="Arial" />
        <Setter x:Uid="Setter_53" Property="FontSize" Value="13" />
        <Setter x:Uid="Setter_54" Property="HorizontalAlignment" Value="Center" />
        <Setter x:Uid="Setter_55" Property="VerticalAlignment" Value="Center" />
        <Setter x:Uid="Setter_56" Property="HorizontalContentAlignment" Value="Center" />
        <Setter x:Uid="Setter_57" Property="VerticalContentAlignment" Value="Center" />
        <Setter x:Uid="Setter_58" Property="ContentTemplate" Value="{StaticResource EngravedContentTemplate}" />
        <Setter x:Uid="Setter_59" Property="ThumbTemplate" Value="{StaticResource SimpleThumbTemplate}" />
        <Setter x:Uid="Setter_60" Property="ThumbBrush" Value="{StaticResource iPhoneThumbBrush}"/>
        <Setter x:Uid="Setter_61" Property="Template" Value="{StaticResource HorizontalToggleSwitchTemplate}"/>
        <Setter x:Uid="Setter_62" Property="CheckedBackground">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_11" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_26" Color="#FF81B5FB" Offset="1"/>
                    <GradientStop x:Uid="GradientStop_27" Color="#FF5D9FF2" Offset="0.50"/>
                    <GradientStop x:Uid="GradientStop_28" Color="#FF569BEF" Offset="0.50"/>
                    <GradientStop x:Uid="GradientStop_29" Color="#FF3772B9"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_63" Property="UncheckedBackground">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_12" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_30" Color="#FFBBBBBB" Offset="0"/>
                    <GradientStop x:Uid="GradientStop_31" Color="#FFE1E2E2" Offset="0.5"/>
                    <GradientStop x:Uid="GradientStop_32" Color="#FFDDDDDD" Offset="0.5"/>
                    <GradientStop x:Uid="GradientStop_33" Color="White" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Uid="Style_5" x:Key="iOS5ToggleSwitchStyle" TargetType="ToggleSwitch:HorizontalToggleSwitch">
        <Setter x:Uid="Setter_64" Property="Foreground" Value="White"/>
        <Setter x:Uid="Setter_65" Property="Width" Value="65"/>
        <Setter x:Uid="Setter_66" Property="Height" Value="24"/>
        <Setter x:Uid="Setter_67" Property="BorderBrush" Value="#AFBEBEBE"/>
        <Setter x:Uid="Setter_68" Property="BorderThickness" Value="1"/>
        <Setter x:Uid="Setter_69" Property="Padding" Value="0,4"/>
        <Setter x:Uid="Setter_70" Property="UncheckedForeground" Value="#FF5F5F5F"/>
        <Setter x:Uid="Setter_71" Property="CheckedForeground" Value="White" />
        <Setter x:Uid="Setter_72" Property="ThumbSize" Value="24"/>
        <Setter x:Uid="Setter_73" Property="FontWeight" Value="SemiBold"/>
        <Setter x:Uid="Setter_74" Property="FontFamily" Value="Arial"/>
        <Setter x:Uid="Setter_75" Property="FontSize" Value="12"/>
        <Setter x:Uid="Setter_76" Property="ContentTemplate" Value="{StaticResource EngravedContentTemplate}" />
        <Setter x:Uid="Setter_77" Property="HorizontalContentAlignment" Value="Center" />
        <Setter x:Uid="Setter_78" Property="VerticalContentAlignment" Value="Center" />
        <Setter x:Uid="Setter_79" Property="ThumbTemplate" Value="{StaticResource iOS5ThumbTemplate}"/>
        <Setter x:Uid="Setter_80" Property="ThumbBrush" Value="{StaticResource iPhoneThumbBrush}" />
        <Setter x:Uid="Setter_81" Property="CheckedBackground">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_13" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_34" Color="#FF017FED" Offset="1"/>
                    <GradientStop x:Uid="GradientStop_35" Color="#FF3772B9"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_82" Property="UncheckedBackground">
            <Setter.Value>
                <LinearGradientBrush x:Uid="LinearGradientBrush_14" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop x:Uid="GradientStop_36" Color="#FFBBBBBB" Offset="0"/>
                    <GradientStop x:Uid="GradientStop_37" Color="White" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter x:Uid="Setter_83" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_12" TargetType="ToggleSwitch:HorizontalToggleSwitch">
                    <Grid x:Uid="Grid_20">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Uid="VisualStateGroup_25" x:Name="CommonStates">
                                <VisualState x:Uid="VisualState_71" x:Name="Normal"/>
                                <VisualState x:Uid="VisualState_72" x:Name="Disabled">
                                    <Storyboard x:Uid="Storyboard_37">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_6" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DisabledOverlay">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_6" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_6">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_73" x:Name="MouseOver"/>
                                <VisualState x:Uid="VisualState_74" x:Name="Pressed"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Uid="VisualStateGroup_26" x:Name="CheckStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition x:Uid="VisualTransition_7" GeneratedDuration="0:0:0.10" To="Unchecked"/>
                                    <VisualTransition x:Uid="VisualTransition_8" GeneratedDuration="0:0:0.10" To="Checked"/>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Uid="VisualState_75" x:Name="Checked"/>
                                <VisualState x:Uid="VisualState_76" x:Name="Unchecked"/>
                                <VisualState x:Uid="VisualState_77" x:Name="DraggingChecked"/>
                                <VisualState x:Uid="VisualState_78" x:Name="DraggingUnchecked"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_15" x:Name="SwitchRoot" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{Binding ActualHeightValue, ConverterParameter=0.5, Converter={StaticResource CornerRadiusValueConverter}, ElementName=ActualSizeProxy}" IsTabStop="False" BorderThickness="1" >
                            <Canvas x:Uid="Canvas_3" MinWidth="{TemplateBinding ThumbSize}" MinHeight="{TemplateBinding FontSize}">
                                <Utils:ActualSizePropertyProxy x:Uid="Utils:ActualSizePropertyProxy_2" x:Name="ActualSizeProxy" Element="{Binding Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed" IsHitTestVisible="False"/>
                                <Grid x:Uid="Grid_21" x:Name="SwitchTrack" Cursor="Hand" Margin="0,-1,0,0" Height="{Binding ActualHeightValue, ElementName=ActualSizeProxy, Mode=OneWay}" >
                                    <StackPanel x:Uid="StackPanel_4" Orientation="Horizontal">
                                        <Border x:Uid="Border_8" Background="{TemplateBinding CheckedBackground}" Margin="-1,0,0,0" Padding="1,0,0,0">
                                            <ContentControl x:Uid="ContentControl_1" x:Name="SwitchChecked" 
    											Content="{TemplateBinding CheckedContent}"
    											HorizontalContentAlignment="Center" 
    											VerticalContentAlignment="Center" 
    											Margin="{TemplateBinding Padding}"
    											Template="{TemplateBinding ContentTemplate}" 
    											Foreground="{TemplateBinding CheckedForeground}" 
    											IsTabStop="False" 
    											FontSize="{TemplateBinding FontSize}" 
    											FontFamily="{TemplateBinding FontFamily}" 
    											HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
    											VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                        </Border>
                                        <Border x:Uid="Border_9" Background="{TemplateBinding UncheckedBackground}" Margin="-1,0,0,0">
                                            <ContentControl x:Uid="ContentControl_2" x:Name="SwitchUnchecked" 
    											Content="{TemplateBinding UncheckedContent}" 
    											HorizontalContentAlignment="Center" 
    											VerticalContentAlignment="Center"
    											Margin="{TemplateBinding Padding}"
    											Template="{TemplateBinding ContentTemplate}"
    											Foreground="{TemplateBinding UncheckedForeground}" 
    											IsTabStop="False" 
    											FontSize="{TemplateBinding FontSize}" 
    											FontFamily="{TemplateBinding FontFamily}" 
    											HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
    											VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                        </Border>
                                    </StackPanel>
                                </Grid>
                                <Borders:InnerGlowBorder 
    								x:Uid="Borders:InnerGlowBorder_2" InnerGlowSize="1,2,1,0" 
    								IsHitTestVisible="False" 
    								InnerGlowOpacity="0.25" 
    								BorderThickness="0" 
    								InnerGlowColor="Black" 
    								Background="#00000000"
    								Height="{Binding ActualHeightValue, ElementName=ActualSizeProxy, Mode=OneWay}" 
    								Width="{Binding ActualWidthValue, ElementName=ActualSizeProxy, Mode=OneWay}" 
    								Margin="-1,-1,0,0" IsTabStop="False" >
                                    <Rectangle 
    									x:Uid="Rectangle_19" VerticalAlignment="Bottom" 
    									RadiusX="8" 
    									RadiusY="8" 
    									StrokeThickness="0" 
    									Height="{Binding ActualHeightValue, ConverterParameter=0.5, Converter={StaticResource ScalarConverter}, ElementName=ActualSizeProxy, Mode=OneWay}" 
    									Margin="3,0">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush x:Uid="LinearGradientBrush_15" EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop x:Uid="GradientStop_38" Color="#28FFFFFF"/>
                                                <GradientStop x:Uid="GradientStop_39" Color="#90FFFFFF" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>
                                    </Rectangle>
                                </Borders:InnerGlowBorder>
                                <Thumb x:Uid="Thumb_3" x:Name="SwitchThumb" 
    								Background="{TemplateBinding ThumbBrush}" 
    								Template="{TemplateBinding ThumbTemplate}" 
    								Cursor="Hand" 
    								Height="{Binding ActualHeightValue, ElementName=ActualSizeProxy, Mode=OneWay}" 
    								Width="{TemplateBinding ThumbSize}" 
    								IsTabStop="False" 
    								BorderBrush="{TemplateBinding BorderBrush}" Margin="46,-1,0,0" Focusable="False"/>
                            </Canvas>
                        </Borders:ClippingBorder>
                        <Border x:Uid="Border_10" x:Name="DisabledOverlay" Background="#AAEEEEEE" Visibility="Collapsed" CornerRadius="{Binding ActualHeightValue, ConverterParameter=0.5, Converter={StaticResource CornerRadiusValueConverter}, ElementName=ActualSizeProxy}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Uid="ControlTemplate_13" x:Key="VerticalThumbTemplate" TargetType="Thumb">
        <Borders:OuterGlowBorder x:Uid="Borders:OuterGlowBorder_7" BorderThickness="0" OuterGlowSize="3" OuterGlowColor="Black" Background="Transparent" CornerRadius="4" ShadowCornerRadius="2" ClipContent="False" OuterGlowOpacity="0.2" IsTabStop="False" >
            <Grid x:Uid="Grid_22" Background="Transparent">
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Uid="VisualStateGroup_27" x:Name="CommonStates">
                        <VisualState x:Uid="VisualState_79" x:Name="Normal"/>
                        <VisualState x:Uid="VisualState_80" x:Name="MouseOver">
                            <Storyboard x:Uid="Storyboard_38">
                                <DoubleAnimation x:Uid="DoubleAnimation_37" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Uid="VisualState_81" x:Name="Pressed">
                            <Storyboard x:Uid="Storyboard_39">
                                <DoubleAnimation x:Uid="DoubleAnimation_38" Duration="0" To="0.25" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Uid="VisualState_82" x:Name="Disabled">
                            <Storyboard x:Uid="Storyboard_40">
                                <DoubleAnimation x:Uid="DoubleAnimation_39" Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Uid="VisualStateGroup_28" x:Name="FocusStates">
                        <VisualState x:Uid="VisualState_83" x:Name="Focused">
                            <Storyboard x:Uid="Storyboard_41">
                                <DoubleAnimation x:Uid="DoubleAnimation_40" Duration="0" To="0.05" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Uid="VisualState_84" x:Name="Unfocused"/>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
                <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_16" x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="2" IsTabStop="False">
                    <StackPanel x:Uid="StackPanel_5" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Rectangle x:Uid="Rectangle_20" Fill="#7F969696" Width="14" Height="1" StrokeThickness="0"/>
                        <Rectangle x:Uid="Rectangle_21" Fill="#7FF8F8F8" Width="14" Height="1" StrokeThickness="0" Margin="0,0,0,2" />
                        <Rectangle x:Uid="Rectangle_22" Fill="#7F969696" Width="14" Height="1" StrokeThickness="0" />
                        <Rectangle x:Uid="Rectangle_23" Fill="#7FF8F8F8" Width="14" Height="1" StrokeThickness="0" Margin="0,0,0,2"/>
                        <Rectangle x:Uid="Rectangle_24" Fill="#7F969696" Width="14" Height="1" StrokeThickness="0" />
                        <Rectangle x:Uid="Rectangle_25" Fill="#7FF8F8F8" Width="14" Height="1" StrokeThickness="0" />
                    </StackPanel>
                </Borders:ClippingBorder>
                <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_17" x:Name="BackgroundAnimation" Background="Black" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Black" CornerRadius="2" IsTabStop="False"/>
                <Rectangle x:Uid="Rectangle_26" x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="2" RadiusX="2"/>
                <Rectangle x:Uid="Rectangle_27" x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1"/>
            </Grid>
        </Borders:OuterGlowBorder>
    </ControlTemplate>

    <Style x:Uid="Style_6" TargetType="Controls:VerticalToggleSwitch">
        <Setter x:Uid="Setter_84" Property="Foreground" Value="White"/>
        <Setter x:Uid="Setter_85" Property="Height" Value="118"/>
        <Setter x:Uid="Setter_86" Property="Width" Value="83"/>
        <Setter x:Uid="Setter_87" Property="BorderBrush" Value="#FFCACACA"/>
        <Setter x:Uid="Setter_88" Property="BorderThickness" Value="1"/>
        <Setter x:Uid="Setter_89" Property="HorizontalAlignment" Value="Center"/>
        <Setter x:Uid="Setter_90" Property="VerticalAlignment" Value="Center"/>
        <Setter x:Uid="Setter_91" Property="UncheckedForeground" Value="#FF666666"/>
        <Setter x:Uid="Setter_92" Property="CheckedForeground" Value="#FF565656"/>
        <Setter x:Uid="Setter_93" Property="ThumbSize" Value="25"/>
        <Setter x:Uid="Setter_94" Property="ThumbBrush" Value="WhiteSmoke"/>
        <Setter x:Uid="Setter_95" Property="ThumbTemplate" Value="{StaticResource VerticalThumbTemplate}"/>
        <Setter x:Uid="Setter_96" Property="ContentTemplate" Value="{StaticResource EngravedContentTemplate}" />
        <Setter x:Uid="Setter_97" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_14" TargetType="Controls:VerticalToggleSwitch">
                    <Grid x:Uid="Grid_23" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Uid="VisualStateGroup_29" x:Name="CommonStates">
                                <VisualState x:Uid="VisualState_85" x:Name="Normal"/>
                                <VisualState x:Uid="VisualState_86" x:Name="Disabled">
                                    <Storyboard x:Uid="Storyboard_42">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_7" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DisabledOverlay">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_7" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_7">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_87" x:Name="MouseOver"/>
                                <VisualState x:Uid="VisualState_88" x:Name="Pressed"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Uid="VisualStateGroup_30" x:Name="CheckStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition x:Uid="VisualTransition_9" GeneratedDuration="0:0:0.10" To="Unchecked"/>
                                    <VisualTransition x:Uid="VisualTransition_10" GeneratedDuration="0:0:0.10" To="Checked"/>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Uid="VisualState_89" x:Name="Checked">
                                    <Storyboard x:Uid="Storyboard_43">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_8" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle1">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_8" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_8">Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_9" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_9" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_9">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation x:Uid="DoubleAnimation_41" Duration="0" To="0.75" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchUncheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_90" x:Name="Unchecked">
                                    <Storyboard x:Uid="Storyboard_44">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_10" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_10" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_10">Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_11" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle1">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_11" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_11">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation x:Uid="DoubleAnimation_42" Duration="0" To="0.75" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchCheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="Dragging" x:Name="Dragging"/>
                                <VisualState x:Uid="VisualState_91" x:Name="DraggingChecked">
                                    <Storyboard x:Uid="Storyboard_45">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_12" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle1">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_12" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_12">Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_13" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_13" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_13">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation x:Uid="DoubleAnimation_43" Duration="0" To="-81" Storyboard.TargetProperty="(Canvas.Top)" Storyboard.TargetName="SwitchThumb" />
                                        <DoubleAnimation x:Uid="DoubleAnimation_44" Duration="0" To="5" Storyboard.TargetProperty="(Rectangle.RadiusX)" Storyboard.TargetName="rectangle"/>
                                        <DoubleAnimation x:Uid="DoubleAnimation_45" Duration="0" To="5" Storyboard.TargetProperty="(Rectangle.RadiusY)" Storyboard.TargetName="rectangle"/>
                                        <DoubleAnimation x:Uid="DoubleAnimation_46" Duration="0" To="0.75" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchUncheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Uid="VisualState_92" x:Name="DraggingUnchecked">
                                    <Storyboard x:Uid="Storyboard_46">
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_14" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_14" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_14">Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_15" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle1">
                                            <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_15" KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility x:Uid="Visibility_15">Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation x:Uid="DoubleAnimation_47" Duration="0" To="0.75" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SwitchCheckedLabel" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_18" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Padding="4,6,3,4" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" >
                            <Borders:ClippingBorder.Background>
                                <LinearGradientBrush x:Uid="LinearGradientBrush_16" EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop x:Uid="GradientStop_40" Color="#FFD0D0D0" Offset="1"/>
                                    <GradientStop x:Uid="GradientStop_41" Color="#FFF3F3F3"/>
                                </LinearGradientBrush>
                            </Borders:ClippingBorder.Background>
                            <Grid x:Uid="Grid_24" x:Name="SwitchRoot" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition x:Uid="ColumnDefinition_7" Width="*"/>
                                    <ColumnDefinition x:Uid="ColumnDefinition_8" Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Grid x:Uid="Grid_25" Grid.Column="1">
                                    <Grid.RowDefinitions>
                                        <RowDefinition x:Uid="RowDefinition_1" Height="0.5*"/>
                                        <RowDefinition x:Uid="RowDefinition_2" Height="0.5*"/>
                                    </Grid.RowDefinitions>
                                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_19" VerticalAlignment="Top" Margin="0,4,1,0" Cursor="Hand">
                                        <Grid x:Uid="Grid_26" Height="18">
                                            <Rectangle x:Uid="rectangle" x:Name="rectangle" RadiusY="4" RadiusX="4" Margin="-4,0,1,0" Visibility="Collapsed">
                                                <Rectangle.Stroke>
                                                    <LinearGradientBrush x:Uid="LinearGradientBrush_17" EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop x:Uid="GradientStop_42" Color="#88E9E9E9" Offset="1"/>
                                                        <GradientStop x:Uid="GradientStop_43" Color="#885E5E5E"/>
                                                    </LinearGradientBrush>
                                                </Rectangle.Stroke>
                                                <Rectangle.Fill>
                                                    <LinearGradientBrush x:Uid="LinearGradientBrush_18" EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop x:Uid="GradientStop_44" Color="#442D2D2D"/>
                                                        <GradientStop x:Uid="GradientStop_45" Color="#44AFAFAF" Offset="1"/>
                                                        <GradientStop x:Uid="GradientStop_46" Color="#445C5C5C" Offset="0.189"/>
                                                    </LinearGradientBrush>
                                                </Rectangle.Fill>
                                            </Rectangle>
                                            <ContentControl x:Uid="ContentControl_3" x:Name="SwitchCheckedLabel" 
                                                Content="{TemplateBinding CheckedContent}"
                                                Background="{TemplateBinding CheckedBackground}"
                                                Template="{TemplateBinding ContentTemplate}" VerticalAlignment="Stretch" Foreground="{TemplateBinding CheckedForeground}" HorizontalAlignment="Left" Padding="2,0,4,0" IsTabStop="False" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" />
                                        </Grid>
                                    </Borders:ClippingBorder>
                                    <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_20" VerticalAlignment="Bottom" Grid.Row="1" Margin="0,0,1,4" Cursor="Hand">
                                        <Grid x:Uid="Grid_27" Height="18">
                                            <Rectangle x:Uid="rectangle1" x:Name="rectangle1" RadiusY="4" RadiusX="4" Margin="-4,0,1,0" Visibility="Collapsed">
                                                <Rectangle.Stroke>
                                                    <LinearGradientBrush x:Uid="LinearGradientBrush_19" EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop x:Uid="GradientStop_47" Color="#88C2C2C2" Offset="1"/>
                                                        <GradientStop x:Uid="GradientStop_48" Color="#886A6A6A"/>
                                                    </LinearGradientBrush>
                                                </Rectangle.Stroke>
                                                <Rectangle.Fill>
                                                    <LinearGradientBrush x:Uid="LinearGradientBrush_20" EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop x:Uid="GradientStop_49" Color="#442D2D2D"/>
                                                        <GradientStop x:Uid="GradientStop_50" Color="#44AFAFAF" Offset="1"/>
                                                        <GradientStop x:Uid="GradientStop_51" Color="#445C5C5C" Offset="0.189"/>
                                                    </LinearGradientBrush>
                                                </Rectangle.Fill>
                                            </Rectangle>
                                            <ContentControl
                                                x:Uid="ContentControl_4" x:Name="SwitchUncheckedLabel" 
                                                Content="{TemplateBinding UncheckedContent}"
                                                Template="{TemplateBinding ContentTemplate}"
                                                VerticalAlignment="Stretch"
                                                Foreground="{TemplateBinding UncheckedForeground}" 
                                                HorizontalAlignment="Left" 
                                                Padding="2,0,4,0" 
                                                IsTabStop="False" 
                                                FontFamily="{TemplateBinding FontFamily}" 
                                                FontSize="{TemplateBinding FontSize}" 
                                                FontWeight="{TemplateBinding FontWeight}" 
                                                FontStyle="{TemplateBinding FontStyle}" />
                                        </Grid>
                                    </Borders:ClippingBorder>
                                </Grid>
                                <Borders:ClippingBorder x:Uid="Borders:ClippingBorder_21" Margin="0" CornerRadius="4">
                                    <Borders:ClippingBorder.Background>
                                        <LinearGradientBrush x:Uid="LinearGradientBrush_21" EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop x:Uid="GradientStop_52" Color="#FF0ACC0D" Offset="0"/>
                                            <GradientStop x:Uid="GradientStop_53" Color="#FFF9FF92" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Borders:ClippingBorder.Background>
                                    <Grid x:Uid="Grid_28">
                                        <Borders:InnerGlowBorder x:Uid="Borders:InnerGlowBorder_3" InnerGlowColor="Black" ClipContent="False" BorderThickness="0" CornerRadius="4" InnerGlowOpacity="0.15" Background="{x:Null}" InnerGlowSize="3,5,3,2" IsTabStop="False" />
                                        <StackPanel x:Uid="StackPanel_6" Orientation="Vertical" VerticalAlignment="Center">
                                            <Path x:Uid="Path_5" Data="M-0.79419744,59.372883 L15.553296,49.89521 L31.891663,59.372883 L31.891663,67.875198 L15.548733,58.462936 L-0.79419744,67.906197 z" Fill="#3FFFFFFF" Stretch="Fill" StrokeThickness="0" Margin="2,-3" Height="27"/>
                                            <Path x:Uid="Path_6" Data="M-0.79419744,59.372883 L15.553296,49.89521 L31.891663,59.372883 L31.891663,67.875198 L15.548733,58.462936 L-0.79419744,67.906197 z" Fill="#3FFFFFFF" Stretch="Fill" StrokeThickness="0" Margin="2,-3" Height="27"/>
                                            <Path x:Uid="Path_7" Data="M-0.79419744,59.372883 L15.553296,49.89521 L31.891663,59.372883 L31.891663,67.875198 L15.548733,58.462936 L-0.79419744,67.906197 z" Fill="#3FFFFFFF" Stretch="Fill" StrokeThickness="0" Margin="2,-3" Height="27"/>
                                            <Path x:Uid="Path_8" Data="M-0.79419744,59.372883 L15.553296,49.89521 L31.891663,59.372883 L31.891663,67.875198 L15.548733,58.462936 L-0.79419744,67.906197 z" Fill="#3FFFFFFF" Stretch="Fill" StrokeThickness="0" Margin="2,-3" Height="27"/>
                                            <Path x:Uid="Path_9" Data="M-0.79419744,59.372883 L15.553296,49.89521 L31.891663,59.372883 L31.891663,67.875198 L15.548733,58.462936 L-0.79419744,67.906197 z" Fill="#3FFFFFFF" Stretch="Fill" StrokeThickness="0" Margin="2,-3" Height="27"/>
                                            <Path x:Uid="Path_10" Data="M-0.79419744,59.372883 L15.553296,49.89521 L31.891663,59.372883 L31.891663,67.875198 L15.548733,58.462936 L-0.79419744,67.906197 z" Fill="#3FFFFFFF" Stretch="Fill" StrokeThickness="0" Margin="2,-3" Height="27"/>
                                        </StackPanel>
                                        <Canvas x:Uid="Canvas_4" x:Name="SwitchTrack" Cursor="Hand">
                                            <Utils:ActualSizePropertyProxy x:Uid="ActualSizePropertyProxy" x:Name="ActualSizePropertyProxy" Element="{Binding ElementName=SwitchTrack, Mode=OneWay}" Visibility="Collapsed" />
                                            <Thumb x:Uid="Thumb_4" x:Name="SwitchThumb"
                                                Width="{Binding ActualWidthValue, ElementName=ActualSizePropertyProxy, Mode=OneWay}"
                                                Height="{TemplateBinding ThumbSize}"
                                                Background="{TemplateBinding ThumbBrush}" 
                                                Template="{TemplateBinding ThumbTemplate}" 
                                                BorderThickness="1" 
                                                VerticalAlignment="Bottom" 
                                                IsTabStop="False" 
                                                BorderBrush="{TemplateBinding BorderBrush}"/>
                                        </Canvas>
                                    </Grid>
                                </Borders:ClippingBorder>
                            </Grid>
                        </Borders:ClippingBorder>
                        <Border x:Uid="Border_11" x:Name="DisabledOverlay" Background="#AAEEEEEE" Visibility="Collapsed" CornerRadius="6" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
